// import * as actionTypes from "./actionTypes";
import { fromJS } from "immutable"; //把数据转为immutable对象，使用这个使用更要使用gget方法，使用set方法去变更state内容
import i0 from '../../../static/img/homeIcon/i0.png';
import i1 from '../../../static/img/homeIcon/i1.png';
import i2 from '../../../static/img/homeIcon/i2.png';
const defaultState = fromJS({
  menuArr: [
    {
      icon: i0,
      text: `购物`,
      url:"/shopHome"
    }, {
      icon: i1,
      text: `新闻`,
      url:"/newsList"
    }, {
      icon: i2,
      text: `小说`,
      url:"/novel"
    }
  ],
});
// 导出一个纯函数
export default (state = defaultState, action) => {
  switch (action.type) {
    // let { menuArr, ulDate } = action.result;
    // return state.set("ulDate", fromJS(action.ulDate)).set("textData", fromJS(action.textData)).set("homeRightUlli", fromJS(action.homeRightUlli));
    default:
      return state;
  }
};
